// 连接池模块
const mysql = require("mysql");
// 创造连接池对象，同时设置连接池大小默认15
const pool = mysql.createPool({
    host:'127.0.0.1',
    port:'3306',
    user:'root',
    password:'',
    database:'dgms',
    connectionLimit:15
});
// 导出连接池对象
module.exports = pool;